package com.cn.jinl.domain;

import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.List;
import java.util.Map;

public class OnDutyReduce {
    private String id;

    private String dutyDay;

    private String whiteDay;

    private String bgId;

    private String deleteCount;

    private String userNames;

    private String deduceStatus;

    private String applyUser;

    private String applyTime;

    private String checkUser;

    private String checkTime;

    private String deducePrice;

    private String status;

    private Date createTime;

    private Date updateTime;

    private String dutyDayTask;

    private String whiteDayTask;

    private String itemRefName;

    private String deviceCode;

    private String planName;

    private String gradeValue;

    private int count;

    //个人扣减
    private String singleReducePrice;
    private String userName;
    private String userId;

    private List<OnDutyReducePerson> onDutyReducePeoples;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "待扣减", "1", "已扣减");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getDutyDay() {
        return dutyDay;
    }

    public void setDutyDay(String dutyDay) {
        this.dutyDay = dutyDay == null ? null : dutyDay.trim();
    }

    public String getWhiteDay() {
        return whiteDay;
    }

    public void setWhiteDay(String whiteDay) {
        this.whiteDay = whiteDay == null ? null : whiteDay.trim();
    }

    public String getBgId() {
        return bgId;
    }

    public void setBgId(String bgId) {
        this.bgId = bgId == null ? null : bgId.trim();
    }

    public String getDeleteCount() {
        return deleteCount;
    }

    public void setDeleteCount(String deleteCount) {
        this.deleteCount = deleteCount == null ? null : deleteCount.trim();
    }

    public String getUserNames() {
        return userNames;
    }

    public void setUserNames(String userNames) {
        this.userNames = userNames == null ? null : userNames.trim();
    }

    public String getDeduceStatusCn() {
        return STATUSMAP.get(getDeduceStatus());
    }
    public String getDeduceStatus() {
        return deduceStatus;
    }

    public void setDeduceStatus(String deduceStatus) {
        this.deduceStatus = deduceStatus == null ? null : deduceStatus.trim();
    }

    public String getApplyUser() {
        return applyUser;
    }

    public void setApplyUser(String applyUser) {
        this.applyUser = applyUser == null ? null : applyUser.trim();
    }

    public String getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(String applyTime) {
        this.applyTime = applyTime == null ? null : applyTime.trim();
    }

    public String getCheckUser() {
        return checkUser;
    }

    public void setCheckUser(String checkUser) {
        this.checkUser = checkUser == null ? null : checkUser.trim();
    }

    public String getCheckTime() {
        return checkTime;
    }

    public void setCheckTime(String checkTime) {
        this.checkTime = checkTime == null ? null : checkTime.trim();
    }

    public String getDeducePrice() {
        return deducePrice;
    }

    public void setDeducePrice(String deducePrice) {
        this.deducePrice = deducePrice == null ? null : deducePrice.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public String getDutyDayTask() {
        return dutyDayTask;
    }

    public void setDutyDayTask(String dutyDayTask) {
        this.dutyDayTask = dutyDayTask;
    }

    public String getWhiteDayTask() {
        return whiteDayTask;
    }

    public void setWhiteDayTask(String whiteDayTask) {
        this.whiteDayTask = whiteDayTask;
    }

    public String getItemRefName() {
        return itemRefName;
    }

    public void setItemRefName(String itemRefName) {
        this.itemRefName = itemRefName;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getPlanName() {
        return planName;
    }

    public void setPlanName(String planName) {
        this.planName = planName;
    }

    public String getGradeValue() {
        return gradeValue;
    }

    public void setGradeValue(String gradeValue) {
        this.gradeValue = gradeValue;
    }

    public List<OnDutyReducePerson> getOnDutyReducePeoples() {
        return onDutyReducePeoples;
    }

    public void setOnDutyReducePeoples(List<OnDutyReducePerson> onDutyReducePeoples) {
        this.onDutyReducePeoples = onDutyReducePeoples;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSingleReducePrice() {
        return singleReducePrice;
    }

    public void setSingleReducePrice(String singleReducePrice) {
        this.singleReducePrice = singleReducePrice;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }
}